package d集合.day1.list.Demo4_写时复制;

import java.util.concurrent.CopyOnWriteArrayList;

public class Test {
    public static void main(String[] args) {
        CopyOnWriteArrayList ca=new CopyOnWriteArrayList();
        ca.add("ddd");
        ca.set(0,"123");
        ca.remove("dd");

        ca.get(0);

        //作业1
        System.currentTimeMillis();
        for (int i = 0; i <10000 ; i++) {
            
        }
        System.currentTimeMillis();

        //作业2
        /*自定义集合类，实现其add(T t);
        size();
        toString();
        T get(index);
        */


    }
}
